{extend name="common/base"/}
{block name="style"}

<link rel="stylesheet" href="{__CSS__}/user.css?v={:get_system_config('web','version')}" media="all">
{/block}
<!-- 主体 -->
{block name="body"}
{include file="common/header" /}
<div class="user">
	<div class="user-home"><a href="/">首页</a> - 个人中心</div>
	<div class="user-box clearfix">
		<div class="l user-menu">
			{include file="common/usermenu" /}
		</div>
		<!--右边栏开始-->
		<div class="r user-right">
			<div class="user-detail">
				<div class="layui-row">
					<div class="layui-col-md8 layui-col-md-offset4">
						<div class="user-detail-h3">
							班级座位表  【 {$param['bj_name']} 】
						</div>
					</div>
				</div>
				<div class="layui-row">
							<!--表单开始-->
								<form class="layui-form" id="performance_form">
								<div class="layui-colmd12">
									<div class="seat-column">
										<div class="layui-input-inline">
										<select name="performance_id" lay-filter="performance_id">
											{volist name="performance_list" id="v"}
											<option value="{$v.id}">{$v.title}</option>
											{/volist}
										</select>
									</div>
										<input type="checkbox" lay-filter="allCheck"  title="全选">  <button  class="reverseBtn">反选</button>
										<button class="layui-btn" lay-submit lay-filter="submit-btn">提交统计</button>
									</div>
								</div>
									<!-- 动态生成6列 --> 
									<!--第1列开始-->   
							<div class="layui-col-md2">
								<div class="seat-column">
									<div class="column-header">
										<input type="checkbox" lay-filter="col_1_Check" data-col="col1"> 全选第1列
									</div>
						      <!-- 生成8个座位 -->
						      {if isset($userPc.11)}
						        	<div class="seat-item {$userPc.11.login}">
						        		<input type="checkbox" name="userId" lay-filter="group_1"   value="{$userPc.11.id}"  >
									    {$userPc.11.login_pc}<br>

									    {$userPc.11.st_code}<br>{$userPc.11.name}<i class="layui-icon {$userPc.11.ico} "></i>
									    </div>
										{else /}
										  <div class="seat-item">
										    T11
										  </div>
										{/if}
										{if isset($userPc.12)}
						        	<div class="seat-item {$userPc.12.login}">
						        		<input type="checkbox" name="userId" lay-filter="group_1"   value="{$userPc.12.id}" >
									    {$userPc.12.login_pc}<br>

									    {$userPc.12.st_code}<br>{$userPc.12.name}<i class="layui-icon {$userPc.12.ico} "></i>
									    </div>
										{else /}
										  <div class="seat-item">
										    T12
										  </div>
										{/if}
										{if isset($userPc.13)}
						        	<div class="seat-item {$userPc.13.login}">
						        		<input type="checkbox" name="userId" lay-filter="group_1"   value="{$userPc.13.id}" >
									    {$userPc.13.login_pc}<br>

									    {$userPc.13.st_code}<br>{$userPc.13.name}<i class="layui-icon {$userPc.13.ico} "></i>
									    </div>
										{else /}
										  <div class="seat-item">
										    T13
										  </div>
										{/if}
										{if isset($userPc.14)}
						        	<div class="seat-item {$userPc.14.login}">
						        		<input type="checkbox" name="userId" lay-filter="group_1"   value="{$userPc.14.id}" >
									    {$userPc.14.login_pc}<br>

									    {$userPc.14.st_code}<br>{$userPc.14.name}<i class="layui-icon {$userPc.14.ico} "></i>
									    </div>
										{else /}
										  <div class="seat-item">
										    T14
										  </div>
										{/if}
										{if isset($userPc.15)}
						        	<div class="seat-item {$userPc.15.login}">
						        		<input type="checkbox" name="userId" lay-filter="group_1"   value="{$userPc.15.id}" >
									    {$userPc.15.login_pc}<br>

									    {$userPc.15.st_code}<br>{$userPc.15.name}<i class="layui-icon {$userPc.15.ico} "></i>
									    </div>
										{else /}
										  <div class="seat-item">
										    T15
										  </div>
										{/if}
										{if isset($userPc.16)}
						        	<div class="seat-item {$userPc.16.login}">
						        		<input type="checkbox" name="userId" lay-filter="group_1"   value="{$userPc.16.id}" >
									    {$userPc.16.login_pc}<br>

									    {$userPc.16.st_code}<br>{$userPc.16.name}<i class="layui-icon {$userPc.16.ico} "></i>
									    </div>
										{else /}
										  <div class="seat-item">
										    T16
										  </div>
										{/if}
										{if isset($userPc.17)}
						        	<div class="seat-item {$userPc.17.login}">
						        		<input type="checkbox" name="userId" lay-filter="group_1"   value="{$userPc.17.id}" >
									    {$userPc.17.login_pc}<br>

									    {$userPc.17.st_code}<br>{$userPc.17.name}<i class="layui-icon {$userPc.17.ico} "></i>
									    </div>
										{else /}
										  <div class="seat-item">
										    T17
										  </div>
										{/if}
										{if isset($userPc.18)}
						        	<div class="seat-item {$userPc.18.login}">
						        		<input type="checkbox" name="userId" lay-filter="group_1"   value="{$userPc.18.id}" >
									    {$userPc.18.login_pc}<br>

									    {$userPc.18.st_code}<br>{$userPc.18.name}<i class="layui-icon {$userPc.18.ico} "></i>
									    </div>
										{else /}
										  <div class="seat-item">
										    T18
										  </div>
										{/if}
								      
						</div>
						</div>
						<!--第1列结束-->
						<!--第2列开始-->

						<div class="layui-col-md2">
						<div class=" seat-column">
							<div class="column-header">
								<input type="checkbox" lay-filter="col_2_Check" data-col="col_2"> 全选第2列
							</div>
			      <!-- 生成8个座位 -->
			      {if isset($userPc.21)}
			        	<div class="seat-item {$userPc.21.login}">
			        		<input type="checkbox" name="userId" lay-filter="group_2"   value="{$userPc.21.id}" >
						    {$userPc.21.login_pc}<br>

						    {$userPc.21.st_code}<br>{$userPc.21.name}<i class="layui-icon {$userPc.21.ico} "></i>
						    </div>
							{else /}
							  <div class="seat-item">
							    T21
							  </div>
							{/if}
							{if isset($userPc.22)}
			        	<div class="seat-item {$userPc.22.login}">
			        		<input type="checkbox" name="userId" lay-filter="group_2"   value="{$userPc.22.id}" >
						    {$userPc.22.login_pc}<br>

						    {$userPc.22.st_code}<br>{$userPc.22.name}<i class="layui-icon {$userPc.22.ico} "></i>
						    </div>
							{else /}
							  <div class="seat-item">
							    T22
							  </div>
							{/if}
							{if isset($userPc.23)}
			        	<div class="seat-item {$userPc.23.login}">
			        		<input type="checkbox" name="userId" lay-filter="group_2"   value="{$userPc.23.id}" >
						    {$userPc.23.login_pc}<br>

						    {$userPc.23.st_code}<br>{$userPc.23.name}<i class="layui-icon {$userPc.23.ico} "></i>
						    </div>
							{else /}
							  <div class="seat-item">
							    T23
							  </div>
							{/if}
							{if isset($userPc.24)}
			        	<div class="seat-item {$userPc.24.login}">
			        		<input type="checkbox" name="userId" lay-filter="group_2"   value="{$userPc.24.id}" >
						    {$userPc.24.login_pc}<br>

						    {$userPc.24.st_code}<br>{$userPc.24.name}<i class="layui-icon {$userPc.24.ico} "></i>
						    </div>
							{else /}
							  <div class="seat-item">
							    T14
							  </div>
							{/if}
							{if isset($userPc.25)}
			        	<div class="seat-item {$userPc.25.login}">
			        		<input type="checkbox" name="userId" lay-filter="group_2"   value="{$userPc.25.id}" >
						    {$userPc.25.login_pc}<br>

						    {$userPc.25.st_code}<br>{$userPc.25.name}<i class="layui-icon {$userPc.25.ico} "></i>
						    </div>
							{else /}
							  <div class="seat-item">
							    T25
							  </div>
							{/if}
							{if isset($userPc.26)}
			        	<div class="seat-item {$userPc.26.login}">
			        		<input type="checkbox" name="userId" lay-filter="group_2"   value="{$userPc.26.id}" >
						    {$userPc.26.login_pc}<br>

						    {$userPc.26.st_code}<br>{$userPc.26.name}<i class="layui-icon {$userPc.26.ico} "></i>
						    </div>
							{else /}
							  <div class="seat-item">
							    T26
							  </div>
							{/if}
							{if isset($userPc.27)}
			        	<div class="seat-item {$userPc.27.login}">
			        		<input type="checkbox" name="userId" lay-filter="group_2"   value="{$userPc.27.id}" >
						    {$userPc.27.login_pc}<br>

						    {$userPc.27.st_code}<br>{$userPc.27.name}<i class="layui-icon {$userPc.27.ico} "></i>
						    </div>
							{else /}
							  <div class="seat-item">
							    T27
							  </div>
							{/if}
							{if isset($userPc.28)}
			        	<div class="seat-item {$userPc.28.login}">
			        		<input type="checkbox" name="userId" lay-filter="group_2"   value="{$userPc.28.id}" >
						    {$userPc.28.login_pc}<br>

						    {$userPc.28.st_code}<br>{$userPc.28.name}<i class="layui-icon {$userPc.28.ico} "></i>
						    </div>
							{else /}
							  <div class="seat-item">
							    T28
							  </div>
							{/if}
			      
					</div>
					</div>
				<!--第2列结束-->

				<!--第3列开始-->
						<div class="layui-col-md2">
						<div class=" seat-column">
							<div class="column-header">
								<input type="checkbox" lay-filter="col_3_Check" data-col="col_3"> 全选第3列
							</div>
								      <!-- 生成8个座位 -->
								      {if isset($userPc.31)}
								        	<div class="seat-item {$userPc.31.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_3"   value="{$userPc.31.id}" >
											    {$userPc.31.login_pc}<br>

											    {$userPc.31.st_code}<br>{$userPc.31.name}<i class="layui-icon {$userPc.31.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T31
												  </div>
												{/if}
												{if isset($userPc.32)}
								        	<div class="seat-item {$userPc.32.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_3"   value="{$userPc.32.id}" >
											    {$userPc.32.login_pc}<br>

											    {$userPc.32.st_code}<br>{$userPc.32.name}<i class="layui-icon {$userPc.32.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T32
												  </div>
												{/if}
												{if isset($userPc.33)}
								        	<div class="seat-item {$userPc.33.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_3"   value="{$userPc.33.id}" >
											    {$userPc.33.login_pc}<br>

											    {$userPc.33.st_code}<br>{$userPc.33.name}<i class="layui-icon {$userPc.33.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T33
												  </div>
												{/if}
												{if isset($userPc.34)}
								        	<div class="seat-item {$userPc.34.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_3"   value="{$userPc.34.id}" >
											    {$userPc.34.login_pc}<br>

											    {$userPc.34.st_code}<br>{$userPc.34.name}<i class="layui-icon {$userPc.34.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T34
												  </div>
												{/if}
												{if isset($userPc.35)}
								        	<div class="seat-item {$userPc.35.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_3"   value="{$userPc.35.id}" >
											    {$userPc.35.login_pc}<br>

											    {$userPc.35.st_code}<br>{$userPc.35.name}<i class="layui-icon {$userPc.35.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T35
												  </div>
												{/if}
												{if isset($userPc.36)}
								        	<div class="seat-item {$userPc.36.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_3"   value="{$userPc.36.id}" >
											    {$userPc.36.login_pc}<br>

											    {$userPc.36.st_code}<br>{$userPc.36.name}<i class="layui-icon {$userPc.36.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T36
												  </div>
												{/if}
												{if isset($userPc.37)}
								        	<div class="seat-item {$userPc.37.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_3"   value="{$userPc.37.id}" >
											    {$userPc.37.login_pc}<br>

											    {$userPc.37.st_code}<br>{$userPc.37.name}<i class="layui-icon {$userPc.37.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T37
												  </div>
												{/if}
												{if isset($userPc.38)}
								        	<div class="seat-item {$userPc.38.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_3"   value="{$userPc.38.id}" >
											    {$userPc.38.login_pc}<br>

											    {$userPc.38.st_code}<br>{$userPc.38.name}<i class="layui-icon {$userPc.38.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T38
												  </div>
												{/if}
								      
						</div>
						</div>
				<!--第3列结束-->

				<!--第4列开始-->
				<div class="layui-col-md2">
						<div class=" seat-column">
							<div class="column-header">
								<input type="checkbox" lay-filter="col_4_Check" data-col="col_4"> 全选第4列
							</div>
								      <!-- 生成8个座位 -->
								      {if isset($userPc.41)}
								        	<div class="seat-item {$userPc.41.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_4"   value="{$userPc.41.id}" >
											    {$userPc.41.login_pc}<br>

											    {$userPc.41.st_code}<br>{$userPc.41.name}<i class="layui-icon {$userPc.41.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T41
												  </div>
												{/if}
												{if isset($userPc.42)}
								        	<div class="seat-item {$userPc.42.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_4"   value="{$userPc.42.id}" >
											    {$userPc.42.login_pc}<br>

											    {$userPc.42.st_code}<br>{$userPc.42.name}<i class="layui-icon {$userPc.42.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T42
												  </div>
												{/if}
												{if isset($userPc.44)}
								        	<div class="seat-item {$userPc.44.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_4"   value="{$userPc.43.id}" >
											    {$userPc.43.login_pc}<br>

											    {$userPc.43.st_code}<br>{$userPc.43.name}<i class="layui-icon {$userPc.43.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T43
												  </div>
												{/if}
												{if isset($userPc.44)}
								        	<div class="seat-item {$userPc.44.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_4"   value="{$userPc.44.id}" >
											    {$userPc.44.login_pc}<br>

											    {$userPc.44.st_code}<br>{$userPc.44.name}<i class="layui-icon {$userPc.44.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T44
												  </div>
												{/if}
												{if isset($userPc.45)}
								        	<div class="seat-item {$userPc.45.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_4"   value="{$userPc.45.id}" >
											    {$userPc.45.login_pc}<br>

											    {$userPc.45.st_code}<br>{$userPc.45.name}<i class="layui-icon {$userPc.45.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T45
												  </div>
												{/if}
												{if isset($userPc.46)}
								        	<div class="seat-item {$userPc.46.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_4"   value="{$userPc.46.id}" >
											    {$userPc.46.login_pc}<br>

											    {$userPc.46.st_code}<br>{$userPc.46.name}<i class="layui-icon {$userPc.46.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T46
												  </div>
												{/if}
												{if isset($userPc.47)}
								        	<div class="seat-item {$userPc.47.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_4"   value="{$userPc.47.id}" >
											    {$userPc.47.login_pc}<br>

											    {$userPc.47.st_code}<br>{$userPc.47.name}<i class="layui-icon {$userPc.47.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T47
												  </div>
												{/if}
												{if isset($userPc.48)}
								        	<div class="seat-item {$userPc.48.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_4"   value="{$userPc.48.id}" >
											    {$userPc.48.login_pc}<br>

											    {$userPc.48.st_code}<br>{$userPc.48.name}<i class="layui-icon {$userPc.48.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T48
												  </div>
												{/if}
						</div>
						</div>
				<!--第4列结束-->

				<!--第5列开始-->
				<div class="layui-col-md2">
						<div class=" seat-column">
							<div class="column-header">
								<input type="checkbox" lay-filter="col_5_Check" data-col="col_5"> 全选第5列
							</div>
								      <!-- 生成8个座位 -->
								      {if isset($userPc.51)}
								        	<div class="seat-item {$userPc.51.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_5"   value="{$userPc.51.id}" >
											    {$userPc.51.login_pc}<br>

											    {$userPc.51.st_code}<br>{$userPc.51.name}<i class="layui-icon {$userPc.51.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T51
												  </div>
												{/if}
												{if isset($userPc.52)}
								        	<div class="seat-item {$userPc.52.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_5"   value="{$userPc.52.id}" >
											    {$userPc.52.login_pc}<br>

											    {$userPc.52.st_code}<br>{$userPc.52.name}<i class="layui-icon {$userPc.52.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T52
												  </div>
												{/if}
												{if isset($userPc.55)}
								        	<div class="seat-item {$userPc.55.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_5"   value="{$userPc.53.id}" >
											    {$userPc.53.login_pc}<br>

											    {$userPc.53.st_code}<br>{$userPc.53.name}<i class="layui-icon {$userPc.53.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T53
												  </div>
												{/if}
												{if isset($userPc.54)}
								        	<div class="seat-item {$userPc.54.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_5"   value="{$userPc.54.id}" >
											    {$userPc.54.login_pc}<br>

											    {$userPc.54.st_code}<br>{$userPc.54.name}<i class="layui-icon {$userPc.54.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T54
												  </div>
												{/if}
												{if isset($userPc.55)}
								        	<div class="seat-item {$userPc.55.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_5"   value="{$userPc.55.id}" >
											    {$userPc.55.login_pc}<br>

											    {$userPc.55.st_code}<br>{$userPc.55.name}<i class="layui-icon {$userPc.55.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T55
												  </div>
												{/if}
												{if isset($userPc.56)}
								        	<div class="seat-item {$userPc.56.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_5"   value="{$userPc.56.id}" >
											    {$userPc.56.login_pc}<br>

											    {$userPc.56.st_code}<br>{$userPc.56.name}<i class="layui-icon {$userPc.56.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T56
												  </div>
												{/if}
												{if isset($userPc.57)}
								        	<div class="seat-item {$userPc.57.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_5"   value="{$userPc.57.id}" >
											    {$userPc.57.login_pc}<br>

											    {$userPc.57.st_code}<br>{$userPc.57.name}<i class="layui-icon {$userPc.57.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T57
												  </div>
												{/if}
												{if isset($userPc.58)}
								        	<div class="seat-item {$userPc.58.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_5"   value="{$userPc.58.id}" >
											    {$userPc.58.login_pc}<br>

											    {$userPc.58.st_code}<br>{$userPc.58.name}<i class="layui-icon {$userPc.58.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T58
												  </div>
												{/if}
								      
						</div>
						</div>
				<!--第5列结束-->

				<!--第6列开始-->
										<div class="layui-col-md2">
						<div class=" seat-column">
							<div class="column-header">
								<input type="checkbox" lay-filter="col_6_Check" data-col="col_6"> 全选第6列
							</div>
								      <!-- 生成8个座位 -->
								      {if isset($userPc.61)}
								        	<div class="seat-item {$userPc.61.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_6"   value="{$userPc.61.id}" >
											    {$userPc.61.login_pc}<br>

											    {$userPc.61.st_code}<br>{$userPc.61.name}<i class="layui-icon {$userPc.61.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T61
												  </div>
												{/if}
												{if isset($userPc.62)}
								        	<div class="seat-item {$userPc.62.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_6"   value="{$userPc.62.id}" >
											    {$userPc.62.login_pc}<br>

											    {$userPc.62.st_code}<br>{$userPc.62.name}<i class="layui-icon {$userPc.62.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T62
												  </div>
												{/if}
												{if isset($userPc.63)}
								        	<div class="seat-item {$userPc.63.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_6"   value="{$userPc.63.id}" >
											    {$userPc.63.login_pc}<br>

											    {$userPc.63.st_code}<br>{$userPc.63.name}<i class="layui-icon {$userPc.63.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T63
												  </div>
												{/if}
												{if isset($userPc.64)}
								        	<div class="seat-item {$userPc.64.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_6"   value="{$userPc.64.id}" >
											    {$userPc.64.login_pc}<br>

											    {$userPc.64.st_code}<br>{$userPc.64.name}<i class="layui-icon {$userPc.64.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T64
												  </div>
												{/if}
												{if isset($userPc.65)}
								        	<div class="seat-item {$userPc.65.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_6"   value="{$userPc.65.id}" >
											    {$userPc.65.login_pc}<br>

											    {$userPc.65.st_code}<br>{$userPc.65.name}<i class="layui-icon {$userPc.65.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T65
												  </div>
												{/if}
												{if isset($userPc.66)}
								        	<div class="seat-item {$userPc.66.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_6"   value="{$userPc.66.id}" >
											    {$userPc.66.login_pc}<br>

											    {$userPc.66.st_code}<br>{$userPc.66.name}<i class="layui-icon {$userPc.66.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T66
												  </div>
												{/if}
												{if isset($userPc.67)}
								        	<div class="seat-item {$userPc.67.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_6"   value="{$userPc.67.id}" >
											    {$userPc.67.login_pc}<br>

											    {$userPc.67.st_code}<br>{$userPc.67.name}<i class="layui-icon {$userPc.67.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T67
												  </div>
												{/if}
												{if isset($userPc.68)}
								        	<div class="seat-item {$userPc.68.login}">
								        		<input type="checkbox" name="userId" lay-filter="group_6"   value="{$userPc.68.id}" >
											    {$userPc.68.login_pc}<br>

											    {$userPc.68.st_code}<br>{$userPc.68.name}<i class="layui-icon {$userPc.68.ico} "></i>
											    </div>
												{else /}
												  <div class="seat-item">
												    T68
												  </div>
												{/if}
								      
						</div>
						</div>
				<!--第6列结束-->
           <!--提交按钮开始-->
							<div class="layui-row">
								<div class="layui-col-md8 layui-col-md-offset2">
			           <button class="layui-btn" lay-submit lay-filter="submit-btn">提交统计</button>
								</div>
							</div>
							<!--提交按钮结束-->
							

							</form>
							<!---form 结束-->



				</div>

			</div>
		</div>
		<!--右边栏结束-->
	</div>
</div>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
<script src="{__LAYUI__}/layui.js"></script>
<script language="javascript" src="{__JS__}/laydate/laydate.js"></script>

<script>
	layui.use(['form',  'jquery'], function(){
	  var form = layui.form, 
	      $ = layui.jquery;  
	 
	  // 全选功能 
	  form.on('checkbox(allCheck)',  function(data){
	    $("input[name='userId']").prop('checked', data.elem.checked); 
	    form.render('checkbox');  // 强制渲染更新 
	  });
	   // 第1列选择 
	  form.on('checkbox(col_1_Check)',  function(data){
	    $("[lay-filter='group_1']").prop('checked', data.elem.checked); 
	    form.render('checkbox');  // 强制渲染更新 
	  });
	  // 第2列选择 
	  form.on('checkbox(col_2_Check)',  function(data){
	    $("[lay-filter='group_2']").prop('checked', data.elem.checked); 
	    form.render('checkbox');  // 强制渲染更新 
	  });
	    // 第3列选择 
	  form.on('checkbox(col_3_Check)',  function(data){
	    $("[lay-filter='group_3']").prop('checked', data.elem.checked); 
	    form.render('checkbox');  // 强制渲染更新 
	  });
	  // 第4列选择 
	  form.on('checkbox(col_4_Check)',  function(data){
	    $("[lay-filter='group_4']").prop('checked', data.elem.checked); 
	    form.render('checkbox');  // 强制渲染更新 
	  });
	  // 第5列选择 
	  form.on('checkbox(col_5_Check)',  function(data){
	    $("[lay-filter='group_5']").prop('checked', data.elem.checked); 
	    form.render('checkbox');  // 强制渲染更新 
	  });
	  // 第6列选择 
	  form.on('checkbox(col_6_Check)',  function(data){
	    $("[lay-filter='group_6']").prop('checked', data.elem.checked); 
	    form.render('checkbox');  // 强制渲染更新 
	  });
	  // 反选功能 
	  $('.reverseBtn').click(function(){
	    $("input[name='userId']").each(function(){
	      $(this).prop('checked', !$(this).prop('checked'));
	    });
	    form.render('checkbox');  
	    updateAllCheckStatus(); // 更新全选框状态 
	    return false;
	  });
	 
	  // 子项状态同步全选框 
	  form.on('checkbox(userId)',  function(){
	    updateAllCheckStatus();
	  });
	 
	  // 更新全选框状态函数 
	  function updateAllCheckStatus(){
	    var total = $("input[name='userId']").length;
	    var checked = $("input[name='userId']:checked").length;
	    $("input[lay-filter='allCheck']").prop('checked', total === checked);
	    form.render('checkbox'); 
	  }
  //绑定事件
   form.on('submit(submit-btn)', function(data) {
   	  var arr = [];
	    $('input[name="userId"]:checked').each(function(){
	      arr.push($(this).val()); 
	     });
	    userIds=arr;// 直接赋值数组 

	    //alert(userIds);
	    //alert(data.field.performance_id);

	  	$.ajax({
	  		url:"/home/user/performance",
	  		data:{performance_id:data.field.performance_id,user_ids:userIds},
	  		type:'get',
	  		//traditional: true, // 避免数组序列化错误
	  		success:function(res){
	  			layer.msg(res.msg,{icon:1,time:8000});
	  			// if(res.code===0){
	  			// 	window.location.href = "{:url('/home/index/index')}";
	  			// }else{
	  			// 	layer.msg(res.msg,{ icon: 0 });
	  			// }
	  		}

	  	})
  	return false;

  });

});

</script>

{/block}
<!-- /脚本 -->